/*
 * sequence.h -- this file is part of mISPL.
 * Copyright (C) 2011 Christian Krause
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
#ifndef SEQUENCE_H_
#define SEQUENCE_H_

#include "common.h"

/*** Sequence data type ***/
typedef struct __sequence __sequence_s;
typedef __sequence_s* sequence_t;
struct __sequence {
	int length;
	int period;
	mpz_t* values;
};

/*** Sequence functions ***/
sequence_t	sequence_init(int length, int value);
void		sequence_clear(sequence_t sequence);
void		sequence_fill(sequence_t sequence, mpz_t value);
void		sequence_print(sequence_t sequence);
void		sequence_copy(sequence_t target, sequence_t source);
bool_t		sequence_equals(sequence_t seq1, sequence_t seq2);
hashcode_t	sequence_hashcode(sequence_t sequence);

#endif /* SEQUENCE_H_ */
